home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1993 November / JCSM Shareware Collection - 1993-11.iso / cl040 / autogv1j.lzh / AUTOGIVE.ZIP / AUTOGIVE.DOC next >
Encoding:
Text File  |  1992-11-18  |  12.3 KB  |  301 lines

  1.  ==============================================================================
  2.  ========================                               ============================
  3.  ========================           AUTOGIVE            =======================
  4.  ========================                               =======================
  5.  ==============================================================================
  6.  
  7.  
  8.  
  9.  
  10.                          AutoGive is Copyright (C) 1992
  11.  
  12.                                       by
  13.  
  14.          Pinnacle Software, CP 386 Mount Royal, Quebec Canada  H3P 3C6
  15.          U.S. Office: Box 714 Airport Road, Swanton, Vermont 05488 USA
  16.  
  17.                     Customer Support Service (514) 345-9578
  18.                     Free 9600 bps files BBS  (514) 345-8654
  19.  
  20.  
  21.  
  22.  
  23.                                     -==*==-
  24.  
  25.  
  26.  
  27.  
  28.                          Created for Pinnacle Software
  29.  
  30.                                       by
  31.  
  32.       Timothy Campbell, 1250 Laird #1A, Montreal, Quebec, Canada H3P 2T2
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  ==============================================================================
  41.  OVERVIEW
  42.  ==============================================================================
  43.  
  44.  
  45.  AutoGive is a utility for Pinnacle Software's  Sapphire bulletin board system.
  46.  It simulates  Sapphire's  "GIVE"  command from the DOS command line.   This is
  47.  required if you wish to create a file  during an event.  (For a description of
  48.  event processing, consult your Sapphire manual.)
  49.  
  50.  
  51.  
  52.  ==============================================================================
  53.  INSTALLATION
  54.  ==============================================================================
  55.  
  56.  
  57.  The AutoGive program (AUTOGIVE.EXE) must be placed in your Sapphire directory.
  58.  It will  not  function  correctly if placed  elsewhere.   You may also need to
  59.  obtain  Pinnacle  Software's  MAKENAME  utility -- this  is  explained  in the
  60.  section entitled "How to Code the Batch Files".
  61.  
  62.  
  63.  ==============================================================================
  64.  USING THE AUTOGIVE COMMAND
  65.  ==============================================================================
  66.  
  67.  
  68.  COMMAND FORMAT
  69.  ==============
  70.  
  71.  The format of the AUTOGIVE command is:
  72.  
  73.  AUTOGIVE filename level area
  74.  
  75.  All parameters are required (none are optional).  They are used as follows:
  76.  
  77.  filename   This is the name of the file to be placed on file list.  It must be
  78.             the file name only,  since AutoGive (like the GIVE command) expects
  79.             to find the file in the Sapphire files directory.   (Use Sapphire's
  80.             CONFIG program to set the files directory.)
  81.  
  82.  level      This is the level of the user who may download this file.  You can
  83.             set this as follows:
  84.  
  85.             S   Sysops only (level 7 and higher)
  86.             E   Everybody   (level 1 and higher unless otherwise set in CONFIG)
  87.             2   Level 2 and higher
  88.             3   Level 3 and higher
  89.             :
  90.             :
  91.             7   Level 7 and higher
  92.             8   Level 8 only
  93.  
  94.  area       This is the "file area" designation.  The file area is an arbitrary
  95.             character  you assign to the file in order to  categorize it.   For
  96.             example, you may put all Financial files in area F, while Shareware
  97.             files go in area  S.   In all cases,  all  files go in the Sapphire
  98.             files directory, even if they are assigned to different file areas.
  99.  
  100.  
  101.  
  102.  THE DOCUMENTATION FILE
  103.  ======================
  104.  
  105.  The online  documentation file  is assumed to have the  same  root name as the
  106.  file being given,  but with an extension of  S-D.   It must be in the Sapphire
  107.  files directory.  AutoGive will not fail if the documentation file is missing,
  108.  but it is always a good idea to associate  some  documentation  with each file
  109.  you give.
  110.  
  111.  
  112.  
  113.  EXAMPLES
  114.  ========
  115.  
  116.  Here are some examples of the AutoGive command:
  117.  
  118.  AUTOGIVE FORSYSOP.ZIP S X
  119.  
  120.  This would place the file FORSYSOP.ZIP in file area X.   Nobody but the sysops
  121.  would be able to download the file.  The documentation will reside in the text
  122.  file FORSYSOP.S-D in the files directory.
  123.  
  124.  AUTOGIVE HIGHLEVS.LZH 5 Y
  125.  
  126.  This would place the file  HIGHLEVS.LZH  in file area Y.  Only people at level
  127.  5 or higher would be able to download the file.
  128.  
  129.  
  130.  
  131.  ERRORLEVELS
  132.  ===========
  133.  
  134.  The  success or failure  of the AutoGive command  can be tested within a batch
  135.  file by using IF ERRORLEVEL, as follows:
  136.  
  137.  ERRORLEVEL   MEANING
  138.  ----------   -------
  139.       0       AutoGive worked successfully
  140.     200       There was no room on list for the file (see below)
  141.     255       Other error (e.g. file was not found)
  142.  
  143.  Remember that in batch file programming, you must test the higher error levels
  144.  first, so check 255 before you check 200, and 200 before 0.  (Consult your DOS
  145.  manual for details about IF ERRORLEVEL.)
  146.  
  147.  Sapphire is self-maintaining,  so when you give a file,  it will try to find a
  148.  file that can be replaced.  If it finds an unpopular (seldom downloaded) file,
  149.  it will replace it,  and delete the associated files from the files directory.
  150.  However, if the file list has been filled during the past few weeks,  Sapphire
  151.  has  insufficient information  to make  that kind of decision.   In such case,
  152.  AutoGive (like the GIVE command) will fail.
  153.  
  154.  
  155.  
  156.  ==============================================================================
  157.  SECURITY
  158.  ==============================================================================
  159.  
  160.  
  161.  You can control access to files in two ways:  by level and by list.
  162.  
  163.  
  164.  
  165.  CONTROL BY LEVEL
  166.  ----------------
  167.  
  168.  When you  give a file, you assign it a level.   If you assign it a level of 5,
  169.  people at level 4 or lower can not download the file;  indeed, they won't even
  170.  see it on the files list. You can adjust a user's level by signing on as sysop
  171.  and using the VALIDATE command.
  172.  
  173.  
  174.  
  175.  CONTROL BY LIST
  176.  ---------------
  177.  
  178.  You can place a  "private header"  at the beginning of the documentation file.
  179.  (Consult the file GIMMXX.STD for details about private headers.)   Anybody who
  180.  is not included by the list (or anybody who is excluded by the list)  will not
  181.  be able to download the file.
  182.  
  183.  So if you gave a file named FRED.ZIP, and the file FRED.S-D looked like this:
  184.  
  185.    <<FRED><MARY><JOE>>
  186.    Here's the file you wanted!
  187.  
  188.  Then only  Fred, Mary and Joe would be able to download the file.  You can use
  189.  this technique in a more general way, as follows:
  190.  
  191.    <<CA><NY><NJ>>
  192.    Here's the price list for California, New York and New Jersey.
  193.  
  194.  If you assign generic user accounts  to  groups  of people,  you can give them
  195.  access by group, rather than by individual.  Thus, a salesperson from New York
  196.  would sign on as  NY  and be able to  download  the file  associated  with the
  197.  documentation file shown above.
  198.  
  199.  
  200.  
  201.  ==============================================================================
  202.  HOW TO CODE THE BATCH FILES
  203.  ==============================================================================
  204.  
  205.  
  206.  Here is a sample batch file that uses AutoGive.  You could use this batch file
  207.  as an event (see the Sapphire manual for details about events).
  208.                                            
  209.    BATCH FILE                              EXPLANATION
  210.    --------------------------------------  ------------------------------------
  211.    @ECHO OFF                               Turn off command echoing
  212.    CD \MYDATA                              Switch to a directory
  213.    MAKEDATA                                Run a program to create a file
  214.    CD \SAPPHIRE\FILES                      Switch to Sapphire files directory
  215.    PKZIP -a NEWDATA.ZIP \MYDATA\*.DAT      Compress the file using PKZIP (*)
  216.    AUTOGIVE NEWDATA.ZIP 5 M                Place the file on the list
  217.  
  218.  (*)PKZIP  is an excellent  file compression  program  created  by  PKWare Inc.
  219.     (PKWARE, Inc. 7545 N. Port Washington Road. Glendale, Wisconsin 53217 USA.)
  220.     An alternative is the  freeware  program  LHA,  which is  available  on the
  221.     Pinnacle Support BBS.
  222.  
  223.  The problem with this routine  is that it always uses  the same file name.  To
  224.  solve this problem you can run the program MAKENAME, which is available separ-
  225.  ately from Pinnacle -- you can download a copy from our support BBS.  MAKENAME
  226.  writes  a short batch file  (named SETNAME.BAT)  which sets  a DOS environment
  227.  variable  to an 8-character string  that reflects  the date and time  when the
  228.  program was run.  You can then use the batch  CALL  facility to  run  SETNAME,
  229.  and then use the environment variable as needed.
  230.  
  231.  Here's an example that uses this technique:
  232.  
  233.    BATCH FILE                              EXPLANATION
  234.    --------------------------------------  ------------------------------------
  235.    @ECHO OFF                               Turn off command echoing
  236.    CD \MYDATA                              Switch to a directory
  237.    MAKEDATA                                Run a program to create a file
  238.    CD \SAPPHIRE\FILES                      Switch to Sapphire files directory
  239.    MAKENAME MYFILE                         Run MAKENAME
  240.    CALL SETNAME.BAT                        Call SETNAME to set the variable
  241.    PKZIP -a %MYFILE%.ZIP \MYDATA\*.DAT     Compress the file
  242.    COPY STDDOCU.S-D %MYFILE%.S-D           Create a standard documentation file
  243.    AUTOGIVE %MYFILE%.ZIP 5 M               Place the file on the list
  244.  
  245.  
  246.  
  247.  ==============================================================================
  248.  SHAREWARE TERMS
  249.  ==============================================================================
  250.  
  251.  If you wish to register  AutoGive  and  Sapphire,  contact Timothy Campbell at
  252.  514-345-9578 for complete details.  You must be a registered Sapphire sysop to
  253.  register AutoGive.
  254.  
  255.  STANDARD REGISTRATION:  Standard registrations are processed  by mail.   Remit
  256.  the registration by  cheque or money order,  U.S. or Canadian funds,  drawn on
  257.  a U.S. or Canadian bank.  Sorry, no CODs.
  258.  
  259.  PURCHASE ORDERS:   We  accept  purchase orders  from  Fortune  500  companies,
  260.  government  offices  (municipal,  state,  provincial,  national),  nationally-
  261.  disseminated  print, radio or television media,  and  major educational insti-
  262.  tutions.
  263.  
  264.  CREDIT-CARDS:  The extremely low price of AutoGive  makes it impossible for us
  265.  to process  credit card orders.   If you require fast turn-around,  we suggest
  266.  you use our Instant Registration Service (described below).
  267.  
  268.  REGISTRATION PROVISIONS:   Registered  owners  receive  a disk  containing the
  269.  current  latest version  of the program, plus bonus software,  plus 30 minutes
  270.  of dial-in  (voice or modem)  phone support,  plus a 25% discount on upgrades,
  271.  plus a registration number that will allow you to  automatically  register any
  272.  new  shareware version we issue for a period of  two years  following the date
  273.  of your registration.
  274.  
  275.  INSTANT REGISTRATION SERVICE:   When you order using our  Instant Registration
  276.  service,  we will phone you as soon as we receive your order  to give you your
  277.  registration number.   This number can be used to register any  new  shareware
  278.  copy of AutoGive  for two years.    Instant  Registration  is offered  only on
  279.  registrations  paid  by  purchase order  (if qualified)  or  money  order,  or
  280.  certified cheque.  This service is available in North America only.
  281.  
  282.  SOURCE CODE:  Source code may be purchased for personal and in-house use only.
  283.  You must be a licensed owner to purchase the source code.
  284.  
  285.  PROGRAM CUSTOMIZATION:  We can customize to  your requirements!  Modifications
  286.  are performed at our standard  contract rate of  $35/hr,  but this rate may be
  287.  negotiated,  or reduced,  based upon the applicability of your modification to
  288.  our other customers.
  289.  
  290.  PRODUCT SUPPORT:  Dial-in  support  covers  the  product  itself;  it does not
  291.  cover instruction in DOS or programming.
  292.  
  293.  SHAREWARE:  This is a SHAREWARE product.   That means we encourage you to pass
  294.  around  unregistered, unaltered copies of this program.  We keep our price LOW
  295.  by concentrating on the PROGRAM, not fancy packaging or expensive advertising.
  296.  If you agree with us that shareware keeps down the high price of software, you
  297.  can help the process along,  by giving  other people  unregistered,  unaltered
  298.  copies of AutoGive, or uploading it to  your favourite  bulletin-board system.
  299.  Please support the shareware concept ...   by sharing!
  300.  
  301.